CC=g++
LIB= -L/usr/X11R6/lib -L/usr/lib -lglui -lglut -lGL -lGLU -lXmu -lXext -lX11 -lXi -lm
OBJ= point3d.o polygone.o scene.o vector3.o visu3D.o Tess_poly.o export.o import.o

all: mapper

mapper:	mapper.cpp $(OBJ)
	$(CC)  mapper.cpp $(OBJ) $(LIB)  -g -o mapper

point3d.o: point3d.cpp point3d.h
	g++ -W -Wall -c point3d.cpp

polygone.o: polygone.cpp polygone.h
	g++ -W -Wall -c polygone.cpp

scene.o: scene.cpp scene.h
	g++ -W -Wall -c scene.cpp

vector3.o: vector3.cpp vector3.h
	g++ -W -Wall -c vector3.cpp

visu3D.o: visu3D.cpp visu3D.h
	g++ -W -Wall -c visu3D.cpp

Tess_poly.o: Tess_poly.cpp Tess_poly.h
	g++ -W -Wall -c Tess_poly.cpp

export.o: export.cpp export.h
	g++ -W -Wall -c export.cpp

import.o: import.cpp import.h
	g++ -W -Wall -c import.cpp

clean:
	rm -rf *.o *~ mapper


